@extends('layouts.app')

@section('content')
<div class="container" style="margin:55px auto;">
    <div class="row">
    	<div class="col-md-12 " style="padding:0;">
    		<div class="panel panel-default user-indeximghead" data-toggle="modal" data-target="#myModal" style="background:#e52f17;color:#fff;cursor: pointer;">
    				@if(empty($user->avatar))
                    <img src="{{ asset('images/who.jpg') }}" />
                    @else
                    <img src="{{ $user->avatar }}" />
                    @endif
            		<div>
            			<p style="margin:5px 0 0 0;font-weight:bold;">{{ $user->name }}</p>
            			<p style="margin:0">账户余额：{{ $user->balance }}</p>
            		</div>
            		
           </div>
           <!-- Modal -->
			<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			  <div class="modal-dialog">
			    <div class="modal-content" style="padding:10px 0;">
			      <div class="modal-header">
			        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true" style="padding-right:5px;">&times;</span><span class="sr-only">Close</span></button>
			        <h4 class="modal-title textIndent" id="myModalLabel">{{ $user->name }}</h4>
			      </div>
			      <div class="modal-body user-indexmodel">
			        <!-- <img src="{{ asset('images/saber.png') }}" /> -->
			        <img src="http://qr.topscan.com/api.php?text={{ $share_url }}" width="80%"/>
                    <p>扫描上方二维码，立即加入平台。</p>
			      </div>
			      <div class="modal-footer">
			        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			      </div>
			    </div>
			  </div>
			</div>
        </div>
        <div class="accountBox col-md-12">
			<div class="col-xs-6 ">
				<a href="{{ url('/recharge') }}" class="chongzhi">充值</a>
			</div>
			<div class="col-xs-6" >
				<a href="{{ url('/withdrawals') }}" class="tixian">提现</a>
			</div>
		</div>
        <div class="col-md-12 " style="padding:0">
        	<!-- <div class="col-xs-6">10000 <br>账户余额(元)</div> -->
        	<!-- <div class="col-xs-6"></div> -->
			
            <ul class="list-group user-indexulmag">
				<!-- <li class="list-group-item mb01" style="border-right:0;border-left:0;border:1px solid #f5f5f5;">
					<a href="{{ url('/recharge') }}" style="font:1.2rem/30px 'microsoft yahei';color:#333">
						<p><img src="{{ asset('images/index/account-01.png') }}" alt="" width="25px" class="mr01">账户充值</p>
						<span class="glyphicon glyphicon-chevron-right form-control-feedback"></span>
					</a>
				</li>
                <li class="list-group-item " style="border-right:0;border-left:0;border:1px solid #f5f5f5;">
                    <a href="{{ url('/withdrawals') }}" style="font:1.2rem/30px 'microsoft yahei';color:#333">
                        <p><img src="{{ asset('images/index/account-02.png') }}" alt="" width="25px" class="mr01">余额提现</p>
                        <span class="glyphicon glyphicon-chevron-right form-control-feedback"></span>
                    </a>
                </li> -->
				<li class="list-group-item mb01" style="border-right:0;border-left:0;border:1px solid #f5f5f5;">
					<a href="{{ url('/password') }}" style="font:1.2rem/30px 'microsoft yahei';color:#333">
						<p><img src="{{ asset('images/index/account-03.png') }}" alt="" width="25px" class="mr01">密码修改</p>
						<span class="form-control-feedback "><img src="{{ asset('images/index/right.png') }} " alt="" width="15px" style="margin-top:14px;"></span>
					</a>
				</li>
				<li class="list-group-item " style="border-right:0;border-left:0;border:1px solid #f5f5f5;">
					<a href="{{ url('/financialdetails') }}" style="font:1.2rem/30px 'microsoft yahei';color:#333">
						<p><img src="{{ asset('images/index/account-04.png') }}" alt="" width="25px" class="mr01">收支明细</p>
						<span class="form-control-feedback "><img src="{{ asset('images/index/right.png') }} " alt="" width="15px" style="margin-top:14px;"></span>
					</a>
				</li>
               
				<!-- <li class="list-group-item">
					<a href="{{ url('/commission') }}">
						<p>分销中心</p>
						<span class="glyphicon glyphicon-chevron-right form-control-feedback"></span>
					</a>
				</li> -->
                <li class="list-group-item" style="border-right:0;border-left:0;border:1px solid #f5f5f5;">
                    <a href="{{ url('/businesscard') }}" style="font:1.2rem/30px 'microsoft yahei';color:#333">
                        <p><img src="{{ asset('images/index/account-06.png') }}" alt="" width="25px" class="mr01">我的名片</p>
                        <span class="form-control-feedback "><img src="{{ asset('images/index/right.png') }} " alt="" width="15px" style="margin-top:14px;"></span>
                    </a>
                </li>
			</ul>
        </div>
    </div>
</div>
@endsection
@section('footer')
<!--footer-->
<div class="footerBox">
    <a href="{{ url('/home') }}" class="footerItem "><img src="{{ asset('images/index/icon01.png') }}" alt="" class="footer-icon"><br>首页</a>
    <a href="{{ url('/chat') }}" class="footerItem"><img src="{{ asset('images/index/icon02.png') }}" alt="" class="footer-icon"><br>互动</a>
    <a href="{{ url('/get_article') }}" class="footerItem"><img src="{{ asset('images/index/icon04.png') }}" alt="" class="footer-icon"><br>资讯</a>
    <a href="{{ url('/userinfo') }}" class="footerItem footerItem-cur"><img src="{{ asset('images/index/icon03-cur.png') }}" alt="" class="footer-icon"><br>我的</a>
</div>
 @show